<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<!--@thymesVar id="n" type="ru.tbcarus.spendingsb.model.Note"-->
<head>
    <meta charset="UTF-8">
<!--    <meta name="viewport" content="width=device-width, initial-scale=1">-->
    <title>Отправленные приглашения</title>
    <div th:replace="~{fragments/headTag :: headTag}"></div>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
        crossorigin="anonymous"></script>
<nav th:replace="~{fragments/bodyHeader :: bodyHeader}"></nav>

<div class="container shadow">
    <table class="table table-striped">
        <thead>
        <th>Кому</th>
        <th>Прочитано</th>
        <th>Удалить</th>
        </thead>
        <tbody>
        <tr th:each="n : ${notes}">
            <td th:text="${n.email}"></td>
            <td th:text="${n.read}"></td>
            <td>
                <a th:href="@{invites/{id}/delete?email={e}(id=${n.id}, e=${n.email})}">Удалить</a>
            </td>
        </tr>
        </tbody>
    </table>

</div>
</body>
</html>